<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Neon Admin Panel">
    <meta name="author" content="">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>晓辰-企业管理</title>

    <link rel="stylesheet" th:href="@{/css/jquery-ui-1.10.3.custom.min.css}">
    <link rel="stylesheet" th:href="@{/css/entypo.css}">
    <link rel="stylesheet" th:href="@{/css/css.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/css/neon-core.css}">
    <link rel="stylesheet" th:href="@{/css/neon-theme.css}">
    <link rel="stylesheet" th:href="@{/css/neon-forms.css}">
    <link rel="stylesheet" th:href="@{/css/custom.css}">

    <script th:src="@{/js/jquery-1.11.0.min.js}"></script>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        /* Chart.js */
        body{
            margin: 0px auto;
            width:100%;
            min-width:1024px;
            max-width:100%;
            height:100%;
            background-color:white;
        }
        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }

        /*自定义css*/
        .table th, .table td {
            text-align: center;
            vertical-align: middle!important;
        }
        .table td{
            font-size: 15px;
        }
        .table th{
            font-size: 20px;
        }
    </style>
</head>

<body class="page-body page-fade">

<div class="page-container">

    <!--调用可复用代码：侧边栏-->
    <!--传参定义高亮部位，传的谁的参数，哪个位置就显示高亮-->
    <div th:insert="~{commons/common::sidebar(active='list.html')}"></div>
    <div class="main-content">
        <!--调用可复用代码：头部栏-->
        <div th:insert="~{commons/common::topbar}"></div>
        <hr>

        <div class="container-fluid" >
            <div class="row">
                <main role="main" class="col-md-12 ml-sm-auto pt-3 px-4 border">
                    <h2 style="font-size: 30px;float: left">企业管理</h2>

                    <h3 style="text-align: right">
                        <a class="btn btn-lg btn-success" th:href="@{/toAddCompany}" style="font-size: 20px;border-radius: 6%">
                            添加企业
                        </a>
                    </h3>

                    <div class="table-responsive">
                        <table class="table table-hover table-bordered table-condensed table-sm">
                            <thead>
                            <tr>
                                <th>企业ID</th>
                                <th>企业名称</th>
                                <th>企业编码</th>
                                <th>企业状态</th>
                                <th>操作</th>
                                <th>查询</th>
                            </tr>
                            </thead>
                            <tbody>
                            <!--/*@thymesVar id="emps" type="com.han.dao.EmployeeDao"*/-->
                            <tr th:each="company:${allCompany}">
                                <td th:text="${company.getCompanyId()}"></td>
                                <td th:text="${company.getCompanyName()}"></td>
                                <td th:text="${company.getCompanyCode()}"></td>
                                <td th:text="${company.getCompanyState()==true?'运行中':'停运中'}"></td>
                                <!--<td th:text="${emp.getGender()==0?'女':'男'}"></td>-->

                                <!--<td th:text="${#dates.format(emp.getBirth(),'yyyy/MM/dd HH:mm:ss')}"></td>-->
                                <td style="width: 150px;padding-left: 25px">
                                    <div style="width: 120px">
                                        <a th:href="@{/toUpdateCompany/}+${company.getCompanyId()}" style="float:left">
                                            <button class="btn btn-sm btn-info" style="font-size: 15px;border-radius: 15%">编辑</button>
                                        </a>

                                    <form th:action="@{/company/}+${company.getCompanyId()}" method="post" style="text-align: center">
                                            <input type="hidden" name="_method" value="delete">
                                            <button class="btn btn-sm btn-danger" style="font-size: 15px;border-radius: 15%;">删除</button>
                                        </form>

<!--                                        <form th:action="@{/sewage/}+${company.getCompanyCode()}" method="get" style="text-align: center">-->
<!--                                            <button class="btn btn-sm btn-success" style="font-size: 15px;border-radius: 15%;">查询信息</button>-->
<!--                                        </form>-->
                                    </div>
                                </td>

                                <td>
                                    <form th:action="@{/sewage/}+${company.getCompanyCode()}" method="get" style="text-align: center">
                                        <button class="btn btn-sm btn-success" style="font-size: 15px;border-radius: 15%;">查询信息</button>
                                    </form>
                                </td>

                            </tr>
                            </tbody>
                        </table>
                    </div>
                </main>
            </div>
        </div>

        <!--聊天框-->
        <div th:insert="~{commons/common::rightbar}"></div>
    </div>
</div>



<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="/static/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="/static/js/popper.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="/static/js/feather.min.js"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" src="/static/js/Chart.min.js"></script>

<link rel="stylesheet" th:href="@{/css/jquery-jvectormap-1.2.2.css}">
<link rel="stylesheet" th:href="@{/css/rickshaw.min.css}">

<!-- Bottom Scripts -->
<script th:src="@{/js/main-gsap.js}"></script>
<script th:src="@{/js/jquery-ui-1.10.3.minimal.min.js}"></script>
<script th:src="@{/js/bootstrap.js}"></script>
<script th:src="@{/js/joinable.js}"></script>
<script th:src="@{/js/resizeable.js}"></script>
<script th:src="@{/js/neon-api.js}"></script>
<script th:src="@{/js/jquery-jvectormap-1.2.2.min.js}"></script>
<script th:src="@{/js/jquery-jvectormap-europe-merc-en.js}"></script>
<script th:src="@{/js/jquery.sparkline.min.js}"></script>
<script th:src="@{/js/d3.v3.js}"></script>
<script th:src="@{/js/rickshaw.min.js}"></script>
<script th:src="@{/js/raphael-min.js}"></script>
<script th:src="@{/js/morris.min.js}"></script>
<script th:src="@{/js/toastr.js}"></script>
<script th:src="@{/js/neon-chat.js}"></script>
<script th:src="@{/js/neon-custom.js}"></script>
<script th:src="@{/js/neon-demo.js}"></script>

</body>

</html>